/**
 * Copyright (c) 2002-2012 旭鸣信息
 * All rights reserved. 
 * File：IFrontUserMessageDao.java
 * History: Dec 27, 2012: Initially created, liuzhi.
 */
package com.xteam.ecsystem.dao;

import com.xteam.ecsystem.entities.BaseUserMessage;
import com.xteam.ecsystem.utils.PageCenterStation;

/**
 * 前端用户留言数据访问接口
 * @author liuzhi
 *
 */
public interface IFrontUserMessageDao {

	/**
	 * 获取会员留言（及回复）列表
	 * @author liuzhi Mar 20, 2013
	 * @param userEmail
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	public PageCenterStation<?> getUserMessages(String userEmail, int pageIndex, int pageSize);
	
	/**
	 * 删除用户留言
	 * @author liuzhi Mar 21, 2013
	 * @param bucId
	 */
	public void delUserMessage(String bumId);
	
	/**
	 * 级联删除管理员针对用户的留言
	 * @author liuzhi Mar 21, 2013
	 * @param bucId
	 */
	public void delUserReMessage(String bumId);
	
	/**
	 * 保存用户留言信息
	 * @author liuzhi Mar 22, 2013
	 * @param userMsg
	 */
	public void saveUserMsg(BaseUserMessage userMsg);
}
